package com.itany.corejava.day11;

import javax.swing.*;
import java.awt.*;

public class TestBorderLayout {

    public static void main(String[] args) {

        JFrame jf=new JFrame();

        // jf.setLayout(new BorderLayout());


        jf.add(new JButton("东"),BorderLayout.EAST);
        jf.add(new JButton("南"),BorderLayout.SOUTH);
        jf.add(new JButton("西"),BorderLayout.WEST);
        jf.add(new JButton("北"),BorderLayout.NORTH);
        // jf.add(new JButton("中"),BorderLayout.CENTER);
        jf.add(new JButton("中"));


        jf.setSize(400,300);
        jf.setVisible(true);
        jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);


    }

}
